import React from 'react';
import zh_CN from 'antd/es/locale/zh_CN'; // 引入中文包
import { ConfigProvider } from 'antd'; // 引入antd的配置组件 配置中文用
import ReactDOM from 'react-dom/client';
import './index.css';
import './rest.scss';
import App from './App';
import reportWebVitals from './reportWebVitals';
import {Provider} from 'react-redux'
import store from './store'
import 'dayjs/locale/zh-cn';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  // 严格模式  
  // <React.StrictMode>
  //   <Provider store={store}>
  //     <App />
  //   </Provider>
  // </React.StrictMode>

  <Provider store={store}>
    <ConfigProvider locale={zh_CN}>
      <App />
    </ConfigProvider>
  </Provider>

);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
// 入口文件